import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import OptionsView from '../views/OptionsView.vue'
import ModelChatView from '../views/ModelChatView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/models/:modelName',
      name: 'models',
      component: ModelChatView,
    },
    {
      path: '/options',
      name: 'options',
      component: OptionsView,
    },
  ],
})

export default router
